package com.jindy.module.salesFinancialStatistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.salesFinancialStatistics.mapper.SalesFinancialStatisticsViewMapper;
import com.jindy.module.salesFinancialStatistics.domain.SalesFinancialStatisticsView;
import com.jindy.module.salesFinancialStatistics.service.ISalesFinancialStatisticsViewService;

/**
 * 销售订单统计Service业务层处理
 * 
 * @author jindy
 * @date 2023-06-08
 */
@Service
public class SalesFinancialStatisticsViewServiceImpl implements ISalesFinancialStatisticsViewService 
{
    @Autowired
    private SalesFinancialStatisticsViewMapper salesFinancialStatisticsViewMapper;

    /**
     * 查询销售订单统计
     * 
     * @param leaseMonth 销售订单统计主键
     * @return 销售订单统计
     */
    @Override
    public SalesFinancialStatisticsView selectSalesFinancialStatisticsViewByLeaseMonth(String leaseMonth)
    {
        return salesFinancialStatisticsViewMapper.selectSalesFinancialStatisticsViewByLeaseMonth(leaseMonth);
    }

    /**
     * 查询销售订单统计列表
     * 
     * @param salesFinancialStatisticsView 销售订单统计
     * @return 销售订单统计
     */
    @Override
    public List<SalesFinancialStatisticsView> selectSalesFinancialStatisticsViewList(SalesFinancialStatisticsView salesFinancialStatisticsView)
    {
        return salesFinancialStatisticsViewMapper.selectSalesFinancialStatisticsViewList(salesFinancialStatisticsView);
    }

    /**
     * 新增销售订单统计
     * 
     * @param salesFinancialStatisticsView 销售订单统计
     * @return 结果
     */
    @Override
    public int insertSalesFinancialStatisticsView(SalesFinancialStatisticsView salesFinancialStatisticsView)
    {
        return salesFinancialStatisticsViewMapper.insertSalesFinancialStatisticsView(salesFinancialStatisticsView);
    }

    /**
     * 修改销售订单统计
     * 
     * @param salesFinancialStatisticsView 销售订单统计
     * @return 结果
     */
    @Override
    public int updateSalesFinancialStatisticsView(SalesFinancialStatisticsView salesFinancialStatisticsView)
    {
        return salesFinancialStatisticsViewMapper.updateSalesFinancialStatisticsView(salesFinancialStatisticsView);
    }

    /**
     * 批量删除销售订单统计
     * 
     * @param leaseMonths 需要删除的销售订单统计主键
     * @return 结果
     */
    @Override
    public int deleteSalesFinancialStatisticsViewByLeaseMonths(String[] leaseMonths)
    {
        return salesFinancialStatisticsViewMapper.deleteSalesFinancialStatisticsViewByLeaseMonths(leaseMonths);
    }

    /**
     * 删除销售订单统计信息
     * 
     * @param leaseMonth 销售订单统计主键
     * @return 结果
     */
    @Override
    public int deleteSalesFinancialStatisticsViewByLeaseMonth(String leaseMonth)
    {
        return salesFinancialStatisticsViewMapper.deleteSalesFinancialStatisticsViewByLeaseMonth(leaseMonth);
    }
}
